# Contributor: guddaff <guddaff@protonmail.com>
# Maintainer: guddaff <guddaff@protonmail.com>
pkgname=filite
pkgver=0.3.0
pkgrel=0
pkgdesc="simple and light pastebin"
url="https://github.com/raftario/filite"
arch="x86_64 armv7 armhf aarch64 x86" # limited by rust/cargo
license="MIT"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/raftario/filite/archive/refs/tags/v$pkgver.tar.gz"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	cargo install --locked --path . --root="$pkgdir/usr"
	rm "$pkgdir"/usr/.crates*
}

sha512sums="
9d55a28e3578a8ef010ef184b517de3b59753a1058d82970ad8ff178d219e182eeaa4d31f38330735bddb89dbfbf297229026a69191c8a90c94f2e1dfda06106  filite-0.3.0.tar.gz
"
